﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using DAL;

namespace BLL
{
   public class DeadlineBLL
    {
       DeadlineDAL dal = new DeadlineDAL();
       /// <summary>
       /// 发标
       /// </summary>
       /// <returns></returns>
       public List<Deadline> ShowDeadline()
       {
           return dal.ShowDeadline();
       }
       /// <summary>
       /// 删除信息
       /// </summary>
       /// <param name="id"></param>
       /// <returns></returns>
       public int DeleteDeadline(int id)
       {
           return dal.DeleteDeadline(id);
       }
       /// <summary>
       /// 添加信息
       /// </summary>
       /// <param name="p"></param>
       /// <returns></returns>
       public int Deadline_Add(Model.Deadline p)
       {
           return dal.Sign_Add(p);
       }
       /// <summary>
       /// 显示详细信息
       /// </summary>
       /// <param name="id"></param>
       /// <returns></returns>
       public Deadline ShowDeadlineX(int id)
       {
           return dal.ShowDeadlineX(id);
       }
       /// <summary>
       /// 修改信息
       /// </summary>
       /// <param name="data"></param>
       /// <returns></returns>
       public int UpdateDeadline(Deadline data)
       {
           return dal.UpdateDeadline(data);
       }
       /// <summary>
       /// 搜索
       /// </summary>
       /// <param name="pp"></param>
       /// <returns></returns>
       public List<Deadline> SeleteDeadline(string name)
       {
           return dal.SeleteDeadline(name);
       }
    }
}
